package cn.cqie.attendance.manager.service;

import cn.cqie.attendance.common.util.Page;
import cn.cqie.attendance.common.util.PageBean;
import cn.cqie.attendance.manager.pojo.AdminClasses;

import cn.cqie.attendance.manager.pojo.AdminClassesAdd;
import cn.cqie.attendance.manager.pojo.AdminClassesSerch;
import org.springframework.stereotype.Service;

/**
 * @author 697
 * @date 2021/6/18 17:15
 */
@Service
public interface AdminClassesService {


    /**
     * 查询所有班级信息 条件组合查询
     * @param adminClassesSerch
     * @param pageSize 每一页的数量
     * @param pageNum 当前页
     * @return
     */
    PageBean<AdminClasses> queryAllClassesInfo(AdminClassesSerch adminClassesSerch, Integer pageSize, Integer pageNum);



    /**
     * 新增班级信息
     * @param adminClassesAdd
     * @return
     */
    Page addClasses(AdminClassesAdd adminClassesAdd);

    /**
     * 根据ID查询班级信息
     * @param id
     * @return
     */
    Page<AdminClasses> queryClassesInfoById(Integer id);


    /**
     * 根据ID修改班级信息
     * @param adminClassesAdd
     * @param id 班级id
     * @return
     */
    Page updateClassesInfoById(AdminClassesAdd adminClassesAdd);



}
